package org.blogwu.learn.designpattern.chapter6.v1;

public class Tester {
    public static void main(String[] args) {
        {
            CourseFactory v = new JavaCourseFactory();
            Video bb = v.getVideo();
            Article ac = v.getArticle();
            bb.getVedioName();
            ac.produce();
        }
        {
            CourseFactory v = new PythonCourseFactory();
            Video bb = v.getVideo();
            Article ac = v.getArticle();
            bb.getVedioName();
            ac.produce();
        }

    }
}
